package com.chixing.day10_hashcode_exception;

import java.util.Locale;

public class StringDemo {
    public static void main(String[] args) {
        String word = "file";
        word = word+"run";
        word = word.toUpperCase();

        /**
         * super(16);
         *
         * AbstractStringBuilder(int capacity) {
         *         char[] value = new char[capacity];
         *    }
         */
        StringBuilder stringBuilder1 = new StringBuilder();
        stringBuilder1.append("hello");
        stringBuilder1.append("initial");
        stringBuilder1.append("Constructs a string builder with");
        String str = stringBuilder1.toString();
        System.out.println(str);

        stringBuilder1.delete(0,2);
        System.out.println(stringBuilder1);
        stringBuilder1.insert(3,"aaa");


        String s = "clone-finalize-getClass-notify-notifyAll-wait";
        String[] strArr = s.split("-");

       String s2 =  String.valueOf(67.9); //"67.9"
        String s3 =  String.valueOf(67); //"67"



    }
}
